<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateTrafficlinesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('trafficlines', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('traffic_id')->comment('交通id');
            $table->string('avatar')->comment('交通路线图像')->nullable();
            $table->string('starttime')->comment('起始时间')->nullable();
            $table->string('endtime')->comment('到达时间')->nullable();
            $table->string('startadd')->comment('起始位置')->nullable();
            $table->string('endadd')->comment('结束位置')->nullable();
            $table->string('trafficlineid')->comment('交通路线编号')->nullable();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('trafficlines');
    }
}
